package cn.ryh.controller;

import cn.ryh.entity.User;
import cn.ryh.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @ClassName UserController
 * @Description 用户controller
 * @Author RaoYH
 * @Date 2018/10/22 15:31
 */
@Controller
@RequestMapping(value = "/userController")
public class UserController {
    @Autowired
    private UserService userService;
    @RequestMapping(value = "/selectById")
    @ResponseBody
    public User selectById() {
        User user = userService.selectById(27);
        return user;
    }
}
